package edu.predatorwars.shared.models;

import java.util.UUID;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

public class MovementPayload extends PlayerGamePayload {

	private final Move move;
	private final UUID snapshotId;

	@JsonCreator
	public MovementPayload(@JsonProperty("player")Player player, @JsonProperty("move") Move move, 
			@JsonProperty("gameId") UUID gameId, @JsonProperty("snapshotId") UUID snapshotId) {
		super(player, gameId);
		this.move = move;
		this.snapshotId = snapshotId;
	}

	public Move getMove() {
		return move;
	}
	
	public UUID getSnapshotId() {
		return snapshotId;
	}
}
